package Demo1;

public class Animal {
    private String name;

    public String getName() {
        return name;
    }




    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    private int age;
    public void eat(){
        System.out.println(this.name+"正在吃饭");
    }
}
